import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'vant/lib/index.css'
import axios, { _axios } from './axios'
import {
  Button,
  NavBar,
  Icon,
  Field,
  Tab,
  Tabs,
  List,
  Tabbar,
  TabbarItem,
  Form,
  Calendar,
  Switch,
  Popup,
  Picker,
  Dialog,
  DatetimePicker,
  ActionSheet,
  Toast,
  Checkbox,
  CheckboxGroup,
  Cell,
  CellGroup,
  Uploader,
  Col,
  Row,
  Popover,
  Loading,
  PullRefresh
} from 'vant'
Vue.config.productionTip = false
Vue.use(Button)
  .use(NavBar)
  .use(Icon)
  .use(Field)
  .use(Tab)
  .use(Tabs)
  .use(List)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Form)
  .use(Calendar)
  .use(Switch)
  .use(Popup)
  .use(Picker)
  .use(Dialog)
  .use(DatetimePicker)
  .use(ActionSheet)
  .use(Toast)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(Cell)
  .use(CellGroup)
  .use(Uploader)
  .use(Col)
  .use(Row)
  .use(Popover)
  .use(Loading)
  .use(PullRefresh)
// px2rem
import 'amfe-flexible'
// 配置axios
Vue.prototype.$Post = axios.post
Vue.prototype.$Delete = axios.delete
Vue.prototype.$Get = axios.get
Vue.prototype.$Put = axios.put
Vue.prototype.$PostFormData = axios.postFormData
Vue.prototype.$axios = _axios
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
